package org.springblade.pm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 活动表
 */
@Data
@TableName("blade_pm_active")
@EqualsAndHashCode(callSuper = true)
public class Active extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer id;
	/**
	 * 项目id
	 */
	@ApiModelProperty(value = "项目id")
	private Integer	projectId;


	/**
	 * 活动类型(项目信息、计划、成本、风险变更,线下评审,线上评审)
	 */
	@ApiModelProperty(value = "活动类型")
	private Integer activeType;

	/**
	 * 关联id
	 */
	@ApiModelProperty(value = "关联id")
	private Integer relationId;

	/**
	 * 活动名称
	 */
	@ApiModelProperty(value = "活动名称")
	private String activeTitle;

	/**
	 * 活动内容
	 */
	@ApiModelProperty(value = "活动内容")
	private String activeContent;


	/**
	 * 活动发起人
	 */
	@ApiModelProperty(value = "活动发起人")
	private String activeSponsor;

	/**
	 * 活动参与人
	 */
	@ApiModelProperty(value = "活动参与人")
	private String activeParticipants;

	/**
	 * 活动开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@ApiModelProperty(value = "活动开始时间")
	private Date activeStartTime;

	/**
	 * 活动结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@ApiModelProperty(value = "活动结束时间")
	private Date activeEndTime;

	/**
	 * 活动结论
	 */
	@ApiModelProperty(value = "活动结论")
	private String activeConclusion;

	/**
	 * 活动状态
	 */
	@ApiModelProperty(value = "活动状态")
	private String activeStatus;


	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remarks;
}
